package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwTeachingMaterialsInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 教材信息业务对象 jw_teaching_materials_info
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwTeachingMaterialsInfo.class, reverseConvertGenerate = false)
public class JwTeachingMaterialsInfoBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 教材编号
     */
    @NotBlank(message = "教材编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tmId;

    /**
     * 教材名称
     */
    @NotBlank(message = "教材名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long num;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
